import Request from "@/utils/request.js";

export function getList(params){
    return Request({
        url:'/api/community/list',
        method:'post',
        headers:{
            'Content-Type':'application/json;charset=UTF-8',
        },
        data: params
    })
}

export function add(params){
    return Request({
        url:'/api/community',
        method: 'post',
        headers:{
            'Content-Type':'application/json;charset=UTF-8',
        },
        data: params
    })
}

export function update(params){
    return Request({
        url:'/api/community',
        method: 'put',
        headers:{
            'Content-Type':'application/json;charset=UTF-8',
        },
        data: params
    })
}

export function remove(id){
    return Request({
        url:'/api/community/'+id,
        method: 'delete'
    })
}
